package com.taobao.realsteel.common;

import java.util.List;

public class Query<T> {
	private List<T> resultList;
	private Paginator paginator;
	
	public Integer getTotalItem() {
		return this.paginator.getTotalItem();
	}
	public Integer getTotalPage() {
		return this.paginator.getTotalPage();
	}
	public Integer getCurrentPage() {
		return this.paginator.getCurrentPage();
	}
	public List<T> getResultList() {
		return resultList;
	}
	public void setResultList(List<T> resultList) {
		this.resultList = resultList;
	}
	public Paginator getPaginator() {
		return paginator;
	}
	public void setPaginator(Paginator paginator) {
		this.paginator = paginator;
	}
	
}
